package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.utils.Result;

import java.util.List;

public interface DishService {

    Result<String> addOneDish(DishDto dishDto);

    Result<Page<DishDto>> getPage(String name, int currentPage, int pageSize);

    Result<DishDto> getDish(Long dishId);

    Result<String> updateDish(DishDto dishDto);

    Result<List<DishDto>> getDishList(Dish dish);

    Result<String> deleteDishes(List<Long> ids);

    Result<String> updateDishesStatus(List<Long> ids, int toStatus);
}
